import request from "./http";

// 搜索发现
export function getSearchRecovery():any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/search/hotwords",
        method:"get"
    })
}
// 搜索建议
export function getSearchRecomment(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/search/search_associative_word",
        method: "get",
        params
    })
}

// 搜索结果
export function getSearchResult(params:any):any{
    return request({
        url:"https://api-mall.mihoyogift.com/common/homeishop/v1/search/search_goods_list?limit=16&order_by=comprehensive&category_id=&show_sale_type=3&hide_sold_out=false&page=1",
        method: "get",
        params
    })
}